Remove set -e because lol.
Don't try and link .a's in the External folder.