X64 fixes

minor pull request with x64 configuration and fixed arch discovery using size of void pointer instead of long