Add 64bit support

Change deployment target to 6.0
Solve deprecation issues