huge clean up
only use things which are required to build CM

Signed-off-by: Willi Ye <williye97@gmail.com>