removing Unicode and Ascii typedefs

fix #548 

also includes -lpthread linker flag for FreeBSD.