Add the O_BINARY flag to open() calls on Windows. This is required to
prevent Windows from translating 0x0A to 0x0D0A when writing and vice
versa when reading binary files.

Remove the -mwindows linker option. This option is used to create
non-console binaries on Windows and is the complement of
-mconsole. Using it on console applications makes them run detached
from the console so you won't see any output. The libcdio configure
script did not have this problem.

Forgot to add cachetest programs on previous commit.