test: use $MK_LIBVAR_PATH to override library path

This makes 'make test' work on Mac OS X