Some constructions of (almost) optimally extendable linear codes