Split OpenFile implementation in separate 16- and 32-bit versions, and