Added support for 64-bit Mac OSX. Improved the system auto-fit function.