Fixed compile error with cmake