Fix obvious compile bugs