Fix some compile time errors.