Don't constantly fire detach events
Syntax is a cruel maiden
Use the posix package instead

Also for some reason I have to explicitly link in libm
Fix allocations to work now that we claim our own GdkWindow.

You would think that we wouldn't have to adopt different allocation calculation strategies based on if we had an input window or not, but this is Gtk.
Test to ensure the detach signal works.