Fixed GPU module compilation in master branch

Fixed GPU module compilation after switching from `std::string` to `cv::String`.
Also this fix allows to include `core.hpp` and `gpumat.hpp` headers into `.cu` files.