revise definition of UNUSED_ENV to work on linux