fixed issue #405: 1.2 compile warnings