add -threaded compiler option to make SSL work