added some flags to cmake, need to add functionality to disable mlog