Fix bugs

Also change the Mac OS X version for Ncl binary to >= 10.9 to support
10.10.