flex: fix cross build.