Proper static linking