Fix for mac build