split src into subdirs for more efficient cabal-build
fix some dependencies