Fix Makefiles: -O3 option was not being applied; mkdir for STM.