fix some errors with intel compiler