Better way of static-linking.