fixed bug in makefiles, now all files are properly cleaned up