Follow-up to 0e58529 (for MSVC compatibility)

- Fixes bugreport:8097, thanks to Frost
  http://hercules.ws/board/tracker/issue-8097-compile-issue-using-msvc-2010-windows-7-64bit/

Signed-off-by: Haru <haru@dotalux.com>
Added regular expression matching script commands and operators

- The script command pcre_match and the operator ~= will return the
  number of regular expression matches in a given string (roughly
  equivalent to the php function preg_match or the perl operator =~)
- The operator ~! is the opposite of ~= (roughly equivalent to the perl
  operator !~)
- See script_commands and npc/custom/test.txt for more information.

Signed-off-by: Haru <haru@dotalux.com>
Merge remote-tracking branch 'upstream/master'