fix DSO linking (v2)

Linking with --as-needed was never really a problem.  It did, however,
uncover our incorrect flag-order.

http://fedoraproject.org/wiki/UnderstandingDSOLinkChange
update regdom rules
prepare for 0.5.2