Fixing some compiler warnings and RPM spec file.