remove forgotten reference to unused attribute "_gravity"

for some reason Clang compiled last time. I've got no idea why...
fix all remaining CLang warnings

this time, I've rebuild the whole module and it seems to work...
Merge pull request #54 from andlaus/more_compile_fixes

More compile fixes