Update to support PHP 5.5 #107

This is a fix I created for #107. Open to better fixes.