make static link; fixed boost::program_options usage for windows service