bindings: fix compilation
bindings: improved perl module build script
bindings: improve errors reporting in the perl module