build fix for cpp lib differences