Fixed build paths and added missing dependencies