Added platform.lua for future changes.
Check for supported OS. in main require.
Cleaned up C definition file.