Optimizer issues, took out -O2 in CFLAGS