-threaded has no effect on libraries