WIP: perl: fix cross-compilation