Fixes bug with 64 bit linkage