fixed #70, added tests, need to rebuild glibc