Fixed up cruft from the Visual Studio world, compile errors and made a simple Makefile for building the project.