Give ability to compile in ubuntu 13.04.

I've found that I need those two libs `LIBS=-ldl -lpthread` to compile app.