Cleanup build_system

remove unused/broken files to make the build system more readable 
unify more headers from platform specific to common/

PS: there's quite a lot of files for generating documantation, maybe we could use some system that will parse it for us automatically (doxygen? - I think there was a NPC for that)