Support stack-check builds. Fix line endings. Remove deprecated Makefile.