Fix linkage, Redmine #3495