Add XOPEN2K to resolve issues building on Ubuntu with -std=c99