Fixed compile errors.