Fix for link error

Added pthread and librt to cmakelists so it will link with an upgraded
PI.
Increased the limit for udp connection and also lowered the max image
quality to 95%, 100% uses about the double amount of memory than 95%.
75% is default value now. Increased the tcp server buffer size (unclear
if it works).