Compiles with r9d.

Tested in emulators with APIs 14, 15, 16 and 18, and in i9100 with API 19.