add -O3 flags and optimizations
correction on signal.c