Update fmemopen from NetBSD.