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