I noticed there is a #include "compat.h" in the patch you used, and seems that you comment it in your source code.
#include "compat.h"
Could you please tell me what this head file is, and what you did with that patch? Thanks a lot :)