Switch build to using clang, and use the right executable for optimize