compilation fixes, makefile added