build fixes

This allows libzerocoin to build in more places.   I've almost certainly missed things (e.g., I don't add rpath to LDFLAGS) but this is good enough for now.