-code fix for compilation on MACs