makefile still broken on my system, but the code should work if you use eclipse