getopt: handle POSIXLY_CORRECT set but not exported