Update builder.sh

Indentation fixed, libraries for linking moved last to prevent future, possible `undefined reference` problems.