Catch IO exceptions in case many clients do the same init

at exactly the same time.
Add pkgconfig-depends to .cabal