For xmake.lua

Changes made for compatibility with xmake.lua
