Fix compilation errors with `PCL_NO_PRECOMPILE=ON`

Similar to #417. This pull request fixes remaining errors when `PCL_NO_PRECOMPILE` is enabled.