Support builds that doesn't use cabal for libs and rts
Merge pull request #1327 from melted/nocabal

Support builds that doesn't use cabal for libs and rts