Support namespaced build

Change-Id: Ie2073c629dcca6e8bdf33b803c9015b0373fc3a5
Reviewed-by: Gabriel de Dietrich <gabriel.dedietrich@digia.com>
Reviewed-by: Jake Petroules <jake.petroules@petroules.com>