Fixed reflection warnings (.getPath and .openStream)