Adding support ncFreeBSD, fixing bugs in ncMacOSX