use find_library instead of hardcoded path for COreServices on MacOS

This is required for successful use with bundling tools like pyinstaller.