one fix and added support for solaris

I fixed a path to embeddedgmetric.h in statsd.c, and added needed libs to the build (if
compiling on solaris). thanks!