Iphone5 compatibility

I've made a tiny fix for the issue #15 and removed some hardcoded constats. What do you think?