fix for test code

- use NULL as terminate character
 (using 0 is not safe???? http://d.hatena.ne.jp/nagoya313/20130605/1370452445 )
- add CMakeLists.txt for 1.4/1.5