Fix gcc compile errors.