Makefile: Improve support for cross compiling

Jesse suggested a few changes that would help cross-compiling.

Signed-off-by: John Stultz <john.stultz@linaro.org>