MacOsX 64bit support added.

This solves Segment fault 11 errors.