Fixed 'missing strdup' mingw problem, by unsafe strdup look-a-like
function.