Fix build process such that pango is properly detected.