use RTLD flags instead of value directly
Remove hardcoded path to libpython.so and replace it with a define
generated at configure time.