Fixed compilation fix for PHP>=5.4 + stripping unneded whitespaces

Fixes #5.