Seems -nostdlib was the problem with the constructor/destructor - remove it from Makefile.am, and change the constructor/destructor names again.
Changed paths: