fix initialization problem with FDN.
fix error in platform ifdefs.