Made some Linux-compatibility changes and added a Makefile