Fix linking with static Qt Embedded builds

Make sure pthreads and dl get linked when building Hyperion
using a static Qt Embedded library instead of Qt X11