renamed JNI_FUNCTION_ATTRIBUTES and added undef
fixed build script