Fix compatibility between library and test program.