GCC build, switched to c exports and split sample into simple and simple2 to make sure linking still works with extern "C" functions defined in multiple files.