Fix for #14, but only for amd64

Signed-off-by: Mariusz Ceier <mceier@gmail.com>