Compatibility with nginx > 1.5.3. Fix #5