Support --static on OS X, too