Fix build script

Signed-off-by: Damien Cassou <damien.cassou@gmail.com>
Add missing extension to *.so files as this is used by shlib-deps

Signed-off-by: Damien Cassou <damien.cassou@gmail.com>
Don't need to specify dependencies manually

Signed-off-by: Damien Cassou <damien.cassou@gmail.com>
Fix bug

Signed-off-by: Damien Cassou <damien.cassou@gmail.com>