fix unix installation.
Revert "no need to use pointer here."

This reverts commit 0287b2fb46eb45be2829d81014afb40bbe2d439d.
use const data pointer
better management
fix #6