Revert "swig optimization flags - threads"

This reverts commit 8acffef07e2399312796b476ba5465bc68fc6084.

causes segfault