add grunt task compile libs,  and use lib compiled for sample