Try getting native/tools to build

I'd like to build assets/ from source for the Android build, so I am trying to build native/tools to use native/tools/build/... as specified on buildatlas.sh. After these small changes, it gets to the building, but fails:

/home/mvdan/ppsspp/native/tools/atlastool.cpp:243:12: error: ISO C++ forbids declaration of ‘masq_ty’ with no type [-fpermissive]
      auto &masq_ty = masq.dat[ty];
            ^
/home/mvdan/ppsspp/native/tools/atlastool.cpp:243:33: error: invalid initialization of reference of type ‘int&’ from expression of type ‘std::vector<unsigned char, std::allocator<unsigned char> >’
      auto &masq_ty = masq.dat[ty];
                                 ^
[warnings...]
/home/mvdan/ppsspp/native/tools/atlastool.cpp:246:32: error: invalid types ‘int[int]’ for array subscript
       bool valid = !(masq_ty[tx] || masq_idy[tx] || masq_ty[tx + idx - 1] || masq_idy[tx + idx - 1]);

[more warnings...]
/home/mvdan/ppsspp/native/tools/atlastool.cpp:823:12: error: ‘it’ does not name a type
  for (auto it = fontRefs.begin(), end = fontRefs.end(); it != end; ++it) {
            ^
/home/mvdan/ppsspp/native/tools/atlastool.cpp:823:57: error: expected ‘;’ before ‘it’
  for (auto it = fontRefs.begin(), end = fontRefs.end(); it != end; ++it) {
                                                         ^
/home/mvdan/ppsspp/native/tools/atlastool.cpp:823:57: error: ‘it’ was not declared in this scope
/home/mvdan/ppsspp/native/tools/atlastool.cpp:823:63: error: ‘end’ was not declared in this scope
  for (auto it = fontRefs.begin(), end = fontRefs.end(); it != end; ++it) {
                                                               ^
make[2]: *** [CMakeFiles/atlastool.dir/atlastool.cpp.o] Error 1
make[1]: *** [CMakeFiles/atlastool.dir/all] Error 2
make: *** [all] Error 2