Fixed general compiler warnings in runtime