updated all modules to master/head
added some common .cmake files
modified build scripts