Fix to run in MySQL strict mode and add IIS support for rewrite rules
apply patch for change that fix to run successfully with mysql strict mode and IIS Rewrite Rules support