If they executives knew that a buyout was likely and they modify their compensation to reward the sale of the company, there is nothing illegal?
Not sure myself. Not my area but I suspect an attorney could make decent arguments that it is illegal - an unlawful appropriation of the shareholders value.