Made it kinda work on linux, mostly MSVC sloppiness and GCC's regex support fixes.

Note: to build with GCC you need boost_regex.

Signed-off-by: Xiaomao Chen <xiaomao5@live.com>