Added makefile
Small tweaks to allow compilation under gcc