Fixed target definitions for libraries with OBJDIR