Added -ffunction-sections, -fdata-sections, -Wl,--gc-sections to CXX optimization flags