Fix pjproject compilation in certain circumstances