Ensured Mac OS X compatibility