always declare O_BINARY

closes #461