Fix for cmake install (thanks Andrew!)