Fix JK2 build and runtime breaks.