fix compilation when libdb manualy installed