fixed compilation on x86_64 systems