Allow building with -O2(default),-Os,-O3 and -Ofast