Debugging Mac port issue