more mingw cross fixes

debian i586-mingw32msvc 4.2.1:
function return types not compatible due to ‘volatile’
more mingw cross dist fixes

make dist works ok now, tested created tarbin in a virgin win32 machine
just readline/linenoise is tricky to compile as cross.