Fix some compiler warnings
Use MiniJSON instead of JSON