Replace build file to scons; Replace const int to macro define.