Library fixes + "make install" fix