Fix build path and dependencies