export _mh_execute_header with weak linkage

* also fix extern variables with initialiaztion values to generate runtime code
 * remove the workaround in example/shared_library/mathtest.zig
 * introduce the ability for global variables to have Weak and LinkOnce
   linkage
 * fix `@export` to work for non-functions. this code needs to be
   audited though.
 * fix comptime ptrcast not keeping bigger alignment
 * fix linker warnings when targeting darwin

closes #1903
28bf768883Andrew Kelley committed on 2/18/2019, 9:47:30 PMparent74a335c
10 files changedLine totals unavailable