Pipe mode working, yay!
Added -lrt for old glibc versions like raspbian
More robust connection algorithm

Stolen from uTox
Merge branch 'raspbian'