Fixed some GCC warnings and errors

Fixed some GCC warnings
- related to string literals being used as char*
- related to cast u8* to int without taking into account pointer size