Embedding and compactness theorems for irregular domains