oops, XOPEN_SOURCE still needed