Update the library loader files to ensure compilation with the `optimize` flag turned on