Move solver.h to public headers.
Workaround MSVC/C++03 bug.