Fixed segfault bugs after receiving wrong packet

+ preparations for message queue
Merge branch 'master' of https://github.com/wmatex/ossd3