Add missing template specializations to the NDK build. Change-Id: I42bb6c3bd47648050298472af80333aa900e79bf