Fixes iOS 6 issues with autolayout.

I had to enable auto layout in one of my projects using this library. The library was working in iOS 7 with autolayout, but iOS 6 still had issues. Adding a couple of lines to layoutSubviews makes it work in iOS 6 with autolayout as well.