add O3 for LTO mode

using -flto without specifying which optimization we want does not
behave as expected