What compiles fine is ACE, not TrinityCore.
The problem is caused by uint64 being already defined in the Security Framework as uint64_t. I sent a pull request including a fix to a similar project (SkyFireEMU_420). Maybe I'll add the fix to Trinity Core too.