Fix code overflow.

Also add build.pdf to gitignore