Restore visibility flags, change --enable-debug into --enable-ndebug.