Added separate makefiles for Mac and Linux.