The list below is not consistent with EnvTests.cmake. Some variables are defined there, but not used here, eg. HAVE_GETCWD, HAVE_DUP2, ...