Merge pull request #137 from rockdaboot/spring_cleaning

fix more compiler warnings
fixed lots of warnings that pop up with -DTESTING (make check)