Add new fix to add -L<prefix> to the default linker arguments. This is needed to find libc++ automatically if not installed in a system path.
Working linux version of the script. Tested on Debian Squeeze