Support parallel build trees (VPATH builds)

Add VPATH to make sure it's possible in a different directory and not
clutter the source with build results (such as Makefiles, *.o and *.a
files etc).

Closes: #1084