Updated makefiles.
Confirmed creating of executables in linux works (tested in Ubuntu 13.04).