Compiles with r9d.

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