Work around missing 'extern' on R_running_as_main_program for R-devel

This allows RStudio to successfully build with the R-devels missing an `extern` on `R_running_as_main_program`.