fixed few compile errors.