Fix build with cmake