Fix MinGW build.
Fix compilation of string.byte(s, nil, n).
Merge branch 'master' into agentzh