modified kbuild for cross-platform application build