Fixes few warnings for BaseControl.