Substitute values properly, fix linking flags.
Fix build process such that pango is properly detected.