Fixed Compass compile issue