Android fix warnings

Fix build warnings in android build
What about 

    #ifdef ANDROID
instead?