remove optimisation and stripping to allow gdb usage
make debug distribution conditional on the -g flag being passed to ./distribute.sh