OSX fixups to get ct-ng to work