GRADLE-2583 - protect against CCE with instanceof check when building libc backed file system services on Linux and Mac OS (REVIEW-2111).