diff --git a/src/io_util.c b/src/io_util.c
index 6ef3810..7e5ca01 100644
--- a/src/io_util.c
+++ b/src/io_util.c
@@ -28,7 +28,7 @@ io_load_lua_buffer(char **dest, unsigned long *len, const char *filepath)
PHYSFS_File *file = PHYSFS_openRead(filepath);
PHYSFS_sint64 size = (unsigned long) PHYSFS_fileLength(file);
char *buffer = ec_malloc(sizeof(char) * (unsigned long) size);
- PHYSFS_read(file, buffer, 1, (PHYSFS_uint32) size);
+ PHYSFS_readBytes(file, buffer, (PHYSFS_uint32) size);
PHYSFS_close(file);
*len = (unsigned long) size;
diff --git a/src/skillbar.c b/src/skillbar.c
index b887119..1c3035b 100644
--- a/src/skillbar.c
+++ b/src/skillbar.c
@@ -16,6 +16,7 @@
* along with this program. If not, see .
*/
+#include
#include "defines.h"
#include "skillbar.h"
#include "texture.h"