switch compile to use webapi platform