Don't use static flags to build Python
Revert "Fix flags for linking."

This reverts commit 8d9e68dd2d8a44f3fe86b76297d494d016ce0399.