[#2444] Add support to build binaries on OSX.