Use optimization by default when compiling the lib directory.