trick configurescript to not find fopencookie to fix build. Also add a simple test as upstream doesn't provide tests.