Clean up unused variable warning on gcc
Add support for compilation variables to cmakelists