Fix build on lucid

Review 1232 by @srh
Closes #1967