Main: fix threads
Dbus interface: catch exception when init bus
Merge pull request #18 from ArseniyK/bsd

Main: Fix issues with threading on BSD systems.