fixed build with cmake