makefile cleanup
keep lib dependencies to the end of command

otherwise, ubuntu will be very sad
Merge pull request #1 from houqp/hwhw-master

build script fix for ubuntu