Patch to fix compilation errors on Freebsd 10.0 RELEASE using clang 3.3

I do not know whether you accept changes g3dlite, but I used them as well.