Remove old-style cast. Add ifdef WITH_EXCEPTIONS preprocessor macro
Add DAppHelp class to print nicer help