Add _XOPEN_SOURCE flag when needing getpass.