Compact vortexlike solutions in a generalized Born-Infeld model