Makefile: minor fixes

* add ldconfig to target, install.
* add option -p to `mkdir libgit2_build` to avoid error when the directory
  already exists.