I managed to compile it just by setting typedef boolean in that header file to 'int' instead of 'unsigned char' and everything went well.