clean up lib64 linking paths the same way as lib