Makefile modifiction to compile on openwrt

I changed Makefile to easily compile on openwrt, they work for me and because there is no official xpllib I wanted to merge these to yours.