Some little fix for opencv 3.0