Add jphp.sh for linux, fix build