Dan Gilbert buys Compuware building