[feature] fix include of freebsd
[feature] remove unneed memalign()
[feature] fix compiler warning
[feature] fix compiler warning