[2.1] Fixed build errors

| Q               | A
| --------------- | ---
| Doc fix?        | yes
| New docs?       | no
| Applies to      | 2.1+

There were some [build errors](http://symfony.com/doc/build_errors). This PR, among with other PRs on some 3th party bundles, tries to fix them all.