Makefile and install.libs patches