Fix PIMPL usage

Do not pass a pointer to a half constructed object