a MSVC2010 project to create .dll, some related code changes. Also some const correctness

This pull request contains some changes to allow for compiling a .dll using MSVC. It also contains a MSVS2010 project to do so. 

Separately, there are some changes to change char* into const char*, for const correctness.