Fix linkage problem with detail::getenv()

`detail::getenv()` function was not declared `inline`, which led to `multiple definition` errors at link time when a program consisted of multiple objects that included Boost.Compute headers.

Fixed the problem and added `core.multiple_objects` test.