xpath: fixed for building shared libraries