[FIX] Correct the compilation of C++ files (prepared for the future)
[FIX] Move out the generation of *.map files to the LDFLAGS
[FIX] Move out ARCH_FLAGS from the LDFLAGS and CFLAGS, CXXFLAGS