What OS are you on? This works for me on OSX but not on Windows. Looks like Defold team would need to fix to make it possible to work on Windows too? http://stackoverflow.com/questions/5919743/how-to-use-luajits-ffi-module-when-embedding
On Windows
ERROR:SCRIPT: main/main.script:11: cannot resolve symbol 'glfwEnable': The specified procedure could not be found.