Disable optimizations in chain_database.cpp to work around gcc bug
#774
Use generic_string() when printing filenames in the cli