fix compile errors added build tools to seperate dir