Fixed build, added dependencies