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