fix cmake and relative paths so now compiles and works