makefile: Fix lib and man dir
efence: Fix recursion issue on modern gcc with memory barriers

* Based on netbsd patch by dholland
* gcc fervently believes that malloc and free do not interact
  with anything else, and so it freely reorders code around
  calls to malloc. This caues internalUse to not be set to 1
  during recursive calls, which results in an infinite recursion.