cleaned up g++ warnings

added warning flags to cxxflags
cleaned up warnings provided