Integration of native libraries for serial communication and opengl