Disable '-warn-error' for library code