Update the cabal file to include -O2 for the library