made it more object orienty
updated Makefile to fix linking errors with some versions of GCC
Merge pull request #4 from nathanharper/master

Fixed Linking Problems with GCC