Fixed make file bug
Used GCC inline function to realise a closure.