Fixing compilation errors for less-used packages and BuildFile warnings; remove old BuildFiles.