Resolve the android and linux compile error