Feature/crosscompile

Added support for linux and osx compilation.