Ensure OS X compatibility