cmake: Skip libc & libusb version checks when cross-compiling

These checks break cross-compilation, as they require code to be
run on the host machine.