C wrapper: start a thread to poll the IMU.
Tweak compile flags.