Fixed issue with compiler optimisation: release version of app can be compiled with -Os now