Fixes function not found errors using namespaces.

Merging https://github.com/kodova/hamcrest-php/commit/6de500cd44250f3448ba39a28c4d487206e1227c