Fix Apple compiler error, implement these for Linux/Mac!