Cmake files re-structured. Gcc 4.8 support.