Set PYEXT lib settings in case they were not set automatically

Waf determines whether to set those by evaluating get_config_var("Py_ENABLE_SHARED") == 1.
But for some reasons, on Debian systems (Debian Stable and before), this returns 0 while
it should return 1. Hence the manual defintion, hoping it won't break more than it fixes.