core: support make 4.00

Signed-off-by: Yen-Chin Lee <coldnew.tw@gmail.com>