Fix requires generation bug

Requires on internal units were generated only with debugging enabled.