updated LICENSE
updated FFI stuff for multiplatform compatibility