some more work on fixing makefiles for apps
fixed clean target
complete targets for apps and libs