fix deprecation warnings

This won't build with the latest rustc until https://github.com/sebcrozet/ncollide/pull/16 is merged.