Compactness results and applications to some "zero mass" elliptic problems