support shared libary. bug fixes in astrecv and idle task initialization