fix build for OSS code