Use default paths for and object files and other intermediate files

This makes sure that one can build for all architectures without
having the intermediates from one clobber the other.
Merge pull request #1130 from mstorsjo/default-intermediates-path

Use default paths for and object files and other intermediate files