Fix remaining native compile/link errors.