Variable projection without smoothness