(rpi) fix some build issues for buildroot

Compiling retroarch as a buildroot package has a slightly different setup from the standard rpi filesystem. pkg-config does most of the work, but some libraries still need to be manually specified, and linking has to go through GCC to be successful.
Will this compile on Arch Linux Pi distro?