fix tools/Makefile

imxboot would not build on ubuntu - libs need to come after input
objects.