scons: generate a config.h file
scons: switch to using autoconf-like arguments for configuring the build
scons: add debug / static options
scons: fix debug flags and comment some of the actions