compat: add macro to map symbol in static build