switch udreg config macro to use pkg-config