Fixed build errors.

Signed-off-by: Olli Vanhoja <olli.vanhoja@ninjaware.fi>
Dev subsys seems to cause some unstable behavior with syscalls :|

Signed-off-by: Olli Vanhoja <olli.vanhoja@ninjaware.fi>
Hope this helps to the dev subsys issues