Fix generation of depend. Link to the dynamic libraries used. Signed-off-by: Chia-I Wu <olvaffe@gmail.com>