* rename option with WITH_; add logging module to replace with glog * refactor logging module; build pass on linux and andorid