added devm-functions
fixed cross-compilation shit