Updated the tasks so that they output object files into a directory that
contains the name of the architecture they are building for so as to
avoid any conflicts when compiling for both x86 and amd64.