fix building on hurd, define the use of xopen