Macify

Wrote up a makefile and made code play nice with OS X,
also removed visual studio files.