Works perfectly on OSX with -fno-pie :) Thanks, @jensnockert!