_GNU_SOURCE is needed for some functions. Removed now pointless libpthread depedency. Signed-off-by: Rosen Penev <rosenp@gmail.com>