add support for LIBS setting
wrap POSIX feature macro in linux block