Changes to fix mingw build
Work towards supporting lldb in debug.sh script