fix deprecation warnings

This won't pass on Travis until https://github.com/sebcrozet/ncollide/pull/16 is merged.