Generate .MAP and .COD files in release build
Use safe string functions

Added almost 3 months in commit
91af5f81c2dd0cc4b045bca1ac79549bdd43fd78, but only now am I using them
throughout the code.