Set DESTDIR and TESTBASE so in-tree testing works as expected
with make check/regress

Signed-off-by: Garrett Cooper <yanegomi@gmail.com>
Synch with NetBSD and remove unnecessary divergence with h_macros.h

Signed-off-by: Garrett Cooper <yanegomi@gmail.com>