remove dependency on julia.h

Overall this simplifies the code (removes 50 lines), makes it easier to compile (don't need to know where Julia is), and fixes #2 (for an unknown reason).