Added support for building with OBJDIR