There is an undefined reference error in Linux (ubuntu raring, gcc-4.7, ld 2.23.2), due to a bad argument order.
Libraries should be in the right order in the command line in order to be able to link them properly .
In our case, libxml was appended to LINKFLAGS instead of parsed like the rest of the libraries (and therefore appended after the compiled objects), causing multiple "undefined reference to" errors.
On the other hand, I could not find FinishBuild method due to bad indentation (it was nested too much). I have fixed this error, although I don't understand why libpng and libjpeg should be bundled.
Any comment or suggestion will be appreciated.