Quick Ghidra pro tip. When dealing with external libraries, you have to import them when you import the binary you want to analyze. I have yet to find a way to do this seamlessly after importing the binary. So make sure you add all the folders that contain the libraries you want your project to access!