Fixing some compiler warnings