More flexible interface for build status

checking for a class type as status type is not flexible.
In addition the BuildStatus class should really know
everything about the build status.