fix spec warnings, 1.8 errors