fix build and cleanup tile pruning