Get rid of build failures with symfony 2.7

Symfony 2.7 calls its own deprecated methods, raising warnings that break the build if we treat deprecated as an error...

Fix #176