static functions

set shared functions as static
make cl in vs2012 happy
compile.sh
Revert "compile.sh"

This reverts commit a2fe9b589cfede312c300a51db999e15fee0c535.