compile: Use sed to fix recipe problems

Fix some recipes to set PKG_CONFIG_PATH and use http:// instead of
ftp://. These should be fixed upstream, but my pull requests haven't
been merged yet.