First check-in of working macos port on 10_10_2013