Fix issue with using #if HAVE_FORK instead of #ifdef HAVE_FORK