make improvements

- fix building in all cases with better platform-defs
- avoid including dependencies for clean and distclean