[Bug 20907] $ORIGIN is undefined on NetBSD, breaking compile