Fix compilation problem when MAKEOBJDIR is not empty