Fix compilation of files ending in 'd'

* yup, very silly bug