add -lwinmm to Makefile for MingW
add mmsystem.h for older VC++ versions
add support for WB_IN format (used by GUI)