Fix some MaxMain compile failures introduced by Hoikas' recent cleanup