r2: dynamic build fix