fix proc form of PROTECT2 and PROTECT3 (not currently used)
redefine fork to Rf_fork so helper threads can be disabled in child
added apparently needed PROTECT