Fix creation of extraneous directories in Makefile

Also fix the clean target to remove all generated files
Merge pull request #2 from giannitedesco/build-fixes

Fix creation of extraneous directories in Makefile