Fix for 2.10/2.11 compatibility in routes compiler