compiler: fix for 3.12, 4.00