Add MAXSCALERMEMORY in C flags. The value will be changed later on.
Remove far and _reg keywords.
Remove compilation warnings