Remove use of deprecated TR1 library.