Fix release build warnings