update:

ready for mac os;
clear some macro defines for android.