Fast build option with -O2, plus some warnings fixed