add -fvisibility=hidden to libpbd, and make things work