Add shared lib patch and fix build into /usr/local