include the target platform in the library
clean up build, add linux support