Adjust compile flags for Ubuntu 13.04.

* add -lxio to link flags where required
* add -laio to link flags where required
* add -lpthread to link flags where required

Signed-off-by: Matt Benjamin <matt@linuxbox.com>