Updates build file to work better in library form.