Fix tool for linux link error