fix: compiliation error in debug mode
changes from motsak to get rid of -g -O2 if --enable-debug