Additional error checking
Fixing physics_CreateObject parameters (the previous parameters didn't make much sense)
Merge remote-tracking branch 'upstream/master' into physics_api_fix_2012-03-11
Fixed bug regarding the use of malloc/free for C++ classes.