Adding compat. for PHP 5.3+. PHP 5.4 wasn't being utilised and it increases the potential user-base.

Signed-off-by: Ben Corlett <bencorlett@me.com>
Merge pull request #27 from bencorlett/master

Backwards compat for PHP 5.3