Fix ffi.load for library names containing dot.

fe. ffi.load("pangocairo-1.0") should result pangocairo-1.0.{so|dll|dylib}

Signed-off-by: katlogic <kat@lua.cz>