add importClass macro, clean build system