Fix building on non-Mac flatforms