Fix debug build on mac