makefile: cross-compile compatible
vinput: Fix copy size
Merge pull request #2 from jbtheou/master

- Modify the module makefile to be compatible with cross compilation
- Fix a bug in the write fops where len was not used