fix compilations errors