update compile option and remove import Constants