Changed file_open to use GCC variadic macro

Also changes the conditional use of O_BINARY to the MINGW32 build system.