You didn't say which OS you were trying to build on. It appears to be a missing definition of intptr_t which is root to most of the problems. You need to ensure <stdint.h> is included. Regards, - Håvard