minor fixes

quash some compiler and lintian warnings and a make install bug.
(Or, grab from the tip of barak/x2x master for a kitchen-sink merge)