cc2538: Various build improvements