Fix libpthread.a not being merged into dll

Using the cross-compiler to locate the correct version
preserve java 6 compatibility
Merge remote-tracking branch 'manuel-freire/fixes-to-buildscripts' into gdx-video