Makefiles: Added a few more @EXEEXT@s.

Hopefully the generated Makefiles should now be viable on OS/2.

Thanks to Chris Angelico <rosuav@gmail.com> for the reminder.
Support binary-mode file opening, on platforms where it matters