When consuming rust_native_library from many
projects, the directory path needs to be resolved fully to work
when the build directory may be different; as is the case when
using 'add_subdirectory()' in CMake.
REALPATH was chosen over ABSPATH as REALPATH will still provide
an abssolute path but with symlinks resolved.
Depends on D6498