Fix static linking.