Implement search dirs for #include.

Fixes #3599