Fix Xcode build: add static/shared linker flags