Solved some build problems

Made changes to small parts that were causing build errors for older versions of Latex.