Fix the call for `Socket::get_events`
Add debuginfo, remove unnecessary warning flags.
Fix getting socket options.