Symbol exporting related fixes in automake scripts