[master] fix errors with ambiguous types and other boost uses
Stop doing "using namespace boost" and be specific with the using boost::.
Problem noticed on Solaris 11 with g++ 4.5.2 and boost 1.50.0.
Tested with older g++ 4.1.3 with boost 1.42.0 (on NetBSD).
Discussed little on jabber.