moved inlined array for better compiler compatibility
added DL libs to liked libraries