Fix bug in requiring dependencies with features