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