changed CMakeLists.txt to new build system
added compiler directives for HDF5