FreeM environment modified to properly compile on modern systems.