Added a Makefile for MinGW support. Fixed errors in various classes.