Store CFLAGS in configure, fix build race condition and rabin2 -zz

- Try to fix the race condition in build
- Fixes for rabin2 -zz (show strings when opening an unknown file type)
- Store CFLAGS and LDFLAGS at configure stage