Hack to work around missing 'extern' on R_running_as_main_program
Wrap the workaround in a version check
Merge pull request #145 from rstudio/bugfix/r-running-as-main-program-workaround

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