fix static lib inclusion during unlinked compilation