Fix warnings in core and common

Fixes warnings that aren't related to the ARM core.

WriteStringToFile and ReadStringToFile actually return the number of written data, so it would be kind of odd to return true or false based on this.

Separate from the #119 so they can be reviewed independently.