Fixes for projectile physics, should also fix compiling on linux