Updated Makefiles to target more platforms.
Fixed gcc warnings when targetting Linux.