At least add `-flto` to compilation flags, the best option is transition to gcc-5.x, compile it by yourself or: https://github.com/arduino/Arduino/issues/660