add proper includes for open()