Fix PearlDeviceUtils for osx target