Worked on GCD stuff, worked around some compiler bugs