Fix linking (gcc 4.8.2).