Adds changes to work with OS X.