Fix mac builds Patch by Wolftrac.