Static linking of libs if required