ANDROID log2 issue

Added #ifdef for ANDROID to include the log2 fix..