Fixed the makefile scripts to mix 16bit, 32bit and 64bit code in a single binary