various: added more warning flags to the g++ options and fixed them.