Add helper/env.o as a library source (ref gh-22).
Reduce repeated function pointer casts (see gh-22).
Add workaround for StrawberryPerl GCC (ref gh-22).
Avoid including stdio/iostream for wrong function pointers (ref gh-22).