make fastdict compilable on general environment.