Fix building on 64b system

Got broken in the macosx patch