Fixed extension matching issue if path contained a dot.
Compilation fixes for Windows for new string implementation.