Code

* improve portability of compile environment to netbsd and solaris