Fixes for g++ 4.7 and 4.5 on SUSE Linux 12.2 and 11.3, respectively

several compiler warning fixes as reported in #2