Thank you all for the help, it worked now.
Interestingly, when compiling the libs spider mokey failed. At least with optimisations. Second pass without they were built fine.
After that I was able to built pyrogenesis with optimizations works fine so far.