Small fixes to make compliant with latest version of Three.js and physijs