added makekernel script
changed optimization to Os instead O2 or O3