Android: use the STL libraries in a way that actually works.

I want these four hours of my miserable life back.