Fix some issues with railwaycat mac-port.