Optimized undefined behaviour
Fixed sign mismatch
Fixed intermediate sign mismatch
Fixed intermediate sign mismatch
Fixed implicit return in unimplemented functions
Implemented unimplemented functions with implicit return
Removed unused function
Fixed failure to build on other platforms
Merge pull request #514 from kvanberendonck/master

Fixed general compiler warnings in runtime