-configure: use cabal build instead of install

Change-Id: I7f4ad78f936fe5914f7529d2ff7f224c615d7d78
Fix stuck processes due to clogged pipe

Change-Id: I689eb9d735f17442d4222c90c0d9af0b44994662