fix several make install problems