Convex integration for a class of active scalar equations