build fixes, doc, tiny mingw test prog