The Makefile now distinguishes between Windows (MinGW) and Linux automatically.
I've implemented map saving in the editor, and the corresponding map_save() API function.