Fix multiple compiling errors

Only occurs with eager inlining.
Works fine with no inlining too.

Signed-off-by: Alec Ari <neotheuser@ymail.com>