Fixed typedef of scr_t to work with older versions of gcc.
Replaced CPPFLAGS+="..." with CPPFLAGS="$CPPFLAGS ..." for older tools.