Load library with platform specific extension

On Linux it failed to find ngramdistance.so since when using absolute
paths ffi_lib wont add any extensions.