fixes from szo, http://forums.inside3d.com/viewtopic.php?p=53492#p53492
working makefile from szo
changed compiler options in cbp, thanks to szo