Must link with -shared instead of -G. Fixes #177.