configure: use correct header files in case of bundled polylib