Fixed libraries missing the first object file to be included.
Fixed file finding code.