Alternatively, you can use this command as a post-build step to have the kernel allow your executable to bind to privileged ports without running as root. This might or might not fit your usage better.

setcap cap_net_bind_service=+ep <yourexecutable>