Warning cleanups (unreferenced variables, serial versions IDs)