Changed compatability stuff

Signed-off-by: blucoat <jameshagborg@gmail.com>