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

removes some unused variables