let clang driver pass through -O level

This makes compiling for size (-Os and -Oz) possible. -std-link-opts is still
added, but only for higher -O levels, ie. -O2 and -O3.