Add opk make script
Fix platform-dependant define