fix proc form of PROTECT2 and PROTECT3 (not currently used)
redefine fork to Rf_fork so helper threads can be disabled in child
Merge branch '17-fixes' into 18
added apparently needed PROTECT
Merge branch '17-fixes' into 18