Makefile: fix boost::thread linking, drop pthread, sort