Removed many cmake options and defines to clean up the code