Compilation fixes

It compiles now! Doesn't link, of course.

Version: 1.prealpha.01.11

Signed-off-by: GreatEmerald <pastas4@gmail.com>