fixed examples not compiling, suppressed warnings in a few other examples