Created a gcc Makefile and made project compile under Ubuntu

Hey,

I took your work and made it compile under Ubuntu. Also added a bunch of debugging but you can remove that if you don't need it. Never really tried this Pull Request feature before so sorry if I'm doing something wrong. Just wanted to give you back my changes. Thanks for the effort man :)