Add option --enable-thread-safe which disables known thread unsafe functions.