Fix building when Objective C compiler is not available

This moves the Objective C code to a convenience library so that
it does not force OBJCLD to be used for the main program.
Unfortunately this requires libtool.

The check for CoreLocation.h is done properly so it does not fail
when the Objective C compiler is not present.