Fixed DLL linking errors.