Hacks to correct linking.