fix misc warnings w/ modern compilers
fix compile warnings