Android build and crash fixes

Fixes `load_shader` failing on Android due to an unrelated error flag. Also silences some compiler warnings.