Fixed segfault caused by wrong alignment (solaris)