Defined CFLAGS are not passed in environment to the ./bind/ configure. On one of my build systems I have a custom CFLAGS setting. Because not passed, the libraries built for the export lib are incompatible. Maybe also make sure that make parameters like -j 8 are passed as well.