fix linenoise for windows (code from github.com/Choonster/lua-linenoise-windows)

add CROSS: fixes more mingw cross-compiler issues, special strip and ranlib