fixed missing endif from fork.c -- after all defines