Support for building on VisualStudio

Some source edits so that it also builds and works on Windows/VisualStudio.

- `mrbgem.rake` amended so to have different include/libpaths for win and *nix.
- Source file amended by moving variables declaration at the beginning of each function (required by the silly MS compiler)
- Added a macro for mapping VS StrChr <-> strchr