fixes rendera_CXXFLAGS, adds AM_CXXFLAGS, source code tweaks throughout to fix Werrors