Fix all compiler and linker options for DEBUG+RELEASE with all errors and warnings