BMC buys apps management vendor for $150 million