Compile the library with -O2 flag