Added partial support for building with OBJDIR