Fix compilation flags
Fix soname