[CRITICAL] Fix C::B/MinGW build issue and windows tiles seg fault.

This reverts commit b5335b9118a3a1978d55ba970fe7d9e82d819fc8.
Adds a const in front of char* str; in crafting.cpp to fix a build issue on mingw.
Ref #5443