Rudimentary makefile
Fixed makefile. Now builds static lib too.
Added debug switch to makefile.