Code cleanup for GCC again

throw() and other stuff. Dead code removal.