Allow mkReducePipe vector length to be non power of 2

Change-Id: I73ba56d07dae8215bba69d02b93081ef520edf1c
Added $(RBMDIR)/cpp to include path for rbm

Change-Id: Iba003e645f3d83014a92d9216dc7d9ea3c2f4356