remove legacy code that was causing a segmentation fault !
cmake doesn't support if(LINUX) so fallback to if(UNIX)