Fix linkage errors in release builds.