finish porting to PowerPC64/FreeBSD platform