x64 on windows compilable (but not linkable yet), some warnings fixed