Merge pull request #256 from mmklee/sw_fix

Sw fix
fix: warning -Wreorder in libfac
fix: various compiler warning