Fix some weird def and assignment. Use also Python memory pool for prelink