Fix RenderScript implementation to work with Android Lollipop.