fix host-test build failure with cmake