fix cmake build dependancy errors on fresh makes