Bulletml work: Tweaked makefile and added various fixes to compile under GCC4