Disable warnings for auto_ptr.