What kind of system do you compile on? I could always try to make a virtual machine that have all the dependencies and use that as my "environment". Or maybe if you have instructions on how to set some build flags so I can avoid the errors?
/Andréas Schütz