made GPS code compile-time option to reduce code size on devices which don't need it