PHP 5.4 strict warnings prevented

As committed on master branch:
- https://github.com/woothemes/woocommerce/commit/7c7e0ec9f4575ab91661326eb238a9b7c1e8cc97#comments