Fix compiler warnings on Mono

Fix references for Mono

Fix Rakefile to compile on Mono

Copy NewtonSoft JSON into publish directory