rebuild af and fm to support 64-bit