Workaround for rare crash when using mcrypt in Windows with PHP < 5.3.6