Fixed compass compiling errors