as: use binary mode when writing byte code.

Under wine, the value 10 (newline in ASCII) was being re-written.
This patch changes the file mode to 'binary' which does no re-writing.
This fixes the failing countdown test under wine.