add install target rule and add flib links