makefile: ldconfig instead of ldconfig -n /usr/local/lib

This updates the ld cache so that we don't get runtime link errors
when trying to run the examples.