Added method to handle with gnu extensions

Additionally it was removed some unnecessary files

Signed-off-by: Herbert <herberthb12@gmail.com>