fix poll() usage in #546
fixed python 3 on old compilers, fixes #551
perl: Don't run BEGIN blocks twice in the provided *.psgi

The psgi loaded was calling perl_parse() with the script ostensibly to
set up xsinit.

However it would also call perl_parse() with the path to our *.psgi
file, whith the result that any BEGIN block in the *.psgi file would be
run twice, but anything outside BEGIN blocks would only run once.

This means that any code within explicit BEGIN blocks will run twice,
and any "use" statement in the *.psgi file will run its import() routine
twice, but due to the module being in %INC already we won't actually
compile things twice.

The previous behavior dates all the way back to the initial introduction
of the PSGI plugin in 299fd9c.

Then when support for local::lib was added in 7cbe751 we initially did a
perl_eval_pv() of a "use" statement like I'm doing here again now, but
later on in 1561dd3 changed it to call perl_parse with the commit
message "another PSGI loading fix".

Since there's no info on what that fixed or what was broken before I
have no idea if I'm introducing a regression here, but I don't see why
this way of loding local::lib shouldn't work, and it correctly munges
@INC for me when I try it.

We may still have this bug in the remaining perl_parse() calls that
remain for supporting "preinit" and "mule".

I haven't tested those modes (I don't use them), but when we load the
Perl apps we should only perl_parse() once with -e1, and then
perl_eval_pv() to actually load the application. We should not call
perl_parse() on code that we're just about to perl_eval_pv(), or we'll
run into this bug.

To test this just run:

    ./uwsgi --http 127.0.0.1:8080 --psgi ./t/perl/test.psgi

It'll no longer PANIC on the BEGIN block being run twice now, at least
in that simplistic non-"preinit" non-"mule" mode.
Merge pull request #553 from avar/avar/do-not-run-psgi-begin-blocks-twice

perl: Don't run BEGIN blocks twice in the provided *.psgi
try to better address #553
better perl do usage and --perl-no-plack flag
fix -bash in perl hooks
do not expode if Devel::StackTrace is missing
prepare for 2.0.2
fixed #555
fixed (and improved) on demand emperor socket
force on demand unix socket to 666
on __APPLE__ use LOG_NOTICE for syslog plugin
added on_demand sockets support to mongodb Emperor plugin
fixed mongrel2 post_fork hook
report socket name on invalid zeromq syntax
support for git-based plugins