fix some conditional macros for compilation on GNU/Linux