build fails with cmake error