calibrate shutter positions, fix compiler warnings