fix linux linking order in python bindings