fixed missing wctomb and mbtowc
added required libraries to build it as shared lib