@sicelo I think I found a way to implement your export fix to the rules file. Maybe it works you need to try. For my scratchbox it compiles but not tested the binary so far.
You need to add to the beginning of configure line and make (build step) line the following:
Code:
SBOX_REDIRECT_IGNORE=/usr/bin/perl PATH=/usr/bin:$(PATH)
I will attach my rules file.
*EDIT: fixed the fixed rules file