Re-add link time optimization on OS X

In the new version of clang, -O4 does not imply -flto, so we set the
flag