Hack some fixes for GLM.
Log function send to logcat on android.