Fix compile error on android.
Merge pull request #122 from glennw/android-fix

Fix compile error on android.