[#2450] Add support for OS X.