Add support for overloaded setters

This PR adds supports for overloaded setters as they are found in multiple libraries. It includes the changes from #463 and adds support for static compilation.