fixed compile problem when AFFLIB is installed