fix for mac build