Deal with LIB files better