Fixes for 1.0 compatibility.

1.0 does not automatically convert pointer types as freely as older
versions did. Also the constructor/destructor attribute of subs cannot
be used when declaring the sub.