Fixed build build to work with gears