misc compiler fixes